<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>v-model切换案例</title>
	<style>
		.style1{
			width: 500px;
		}
		.style2{
			width: 500px;
			border-radius: 50%;
		}
	</style>
</head>
<body>

	<div id="box">
		<img :src="src" :class="sty">
		<br>
		第一：<input type="radio" name="tu" v-model="src" value="1.jpg">
		第二：<input type="radio" name="tu" v-model="src" value="2.jpg">
		<br>
		矩形：<input type="radio" name="xz" v-model="sty" value="style1">
		圆形：<input type="radio" name="xz" v-model="sty" value="style2">
	</div>
	<script src="./vue.js"></script>
	<script>
		const vm=new Vue({
			el:'#box',
			data:{
				src:'1.jpg',
				sty:'style1'
			}
		})
	</script>
	
</body>
</html>